package cn.wjh.business.domain.vo;

import cn.wjh.common.core.domain.BaseEntity;
import cn.wjh.common.valid.ValidationGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Set;

@EqualsAndHashCode(callSuper = true)
@Data
public class TranslateVo extends BaseEntity {
    @NotNull(groups = ValidationGroup.Query.class, message = "翻译产品不能为空")
    private Long productId;//产品Id
    @NotBlank(groups = ValidationGroup.Query.class, message = "待翻译文本不能为空")
    private String q;//待翻译文本
    @NotBlank(groups = ValidationGroup.Query.class, message = "源语言不能为空")
    private String from;//源语言
    @NotNull(groups = ValidationGroup.Query.class, message = "目标语言不能为空")
    private Set<String> toList;//目标语言
    private Long translateHistoryId;//翻译历史id
    private String stringKey;//键值
    private String to;//目标语言
}
